gui/tray: Do not add custom styling to status message text field in user status
authorClaudio Cambra <claudio.cambra@nextcloud.com>
Thu, 27 Feb 2025 09:22:31 +0000 (17:22 +0800)
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>
Mon, 3 Mar 2025 16:18:32 +0000 (16:18 +0000)
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
src/gui/UserStatusSelector.qml

index 207c5206da204b3d178f8095b33c423c041bc3e7..8967bc2f9419aa23e930bfc1be409ee1d2456418 100644 (file)
@@ -145,33 +145,11 @@ ColumnLayout {
 
                 property color borderColor: showBorder ? Style.ncBlue : palette.dark
 
-                // We create the square with only the top-left and bottom-left rounded corners
-                // by overlaying different rectangles on top of each other
                 background: Rectangle {
                     radius: Style.slightlyRoundedButtonRadius
                     color: palette.button
                     border.color: fieldButton.borderColor
                     border.width: Style.normalBorderWidth
-
-                    Rectangle {
-                        anchors.fill: parent
-                        anchors.leftMargin: parent.width / 2
-                        anchors.rightMargin: -1
-                        z: 1
-                        color: palette.button
-                        border.color: fieldButton.borderColor
-                        border.width: Style.normalBorderWidth
-                    }
-
-                    Rectangle { // We need to cover the blue border of the non-radiused rectangle
-                        anchors.fill: parent
-                        anchors.leftMargin: parent.width / 4
-                        anchors.rightMargin: parent.width / 4
-                        anchors.topMargin: Style.normalBorderWidth
-                        anchors.bottomMargin: Style.normalBorderWidth
-                        z: 2
-                        color: palette.button
-                    }
                 }
 
                 contentItem: Label {
@@ -212,43 +190,11 @@ ColumnLayout {
             TextField {
                 id: userStatusMessageTextField
 
-                property color borderColor: activeFocus ? Style.ncBlue : palette.dark
-
                 Layout.fillWidth: true
-                Layout.preferredHeight: contentHeight + (Style.smallSpacing * 2)
-
                 placeholderText: qsTr("What is your status?")
-                placeholderTextColor: palette.dark
                 text: userStatusSelectorModel.userStatusMessage
-                verticalAlignment: TextInput.AlignVCenter
                 selectByMouse: true
                 onEditingFinished: userStatusSelectorModel.userStatusMessage = text
-
-                background: Rectangle {
-                    radius: Style.slightlyRoundedButtonRadius
-                    color: palette.base
-                    border.color: userStatusMessageTextField.borderColor
-                    border.width: Style.normalBorderWidth
-
-                    Rectangle {
-                        anchors.fill: parent
-                        anchors.rightMargin: parent.width / 2
-                        z: 1
-                        color: palette.base
-                        border.color: userStatusMessageTextField.borderColor
-                        border.width: Style.normalBorderWidth
-                    }
-
-                    Rectangle { // We need to cover the blue border of the non-radiused rectangle
-                        anchors.fill: parent
-                        anchors.leftMargin: parent.width / 4
-                        anchors.rightMargin: parent.width / 4
-                        anchors.topMargin: Style.normalBorderWidth
-                        anchors.bottomMargin: Style.normalBorderWidth
-                        z: 2
-                        color: palette.base
-                    }
-                }
             }
         }